<?php
/**
 * Created by PhpStorm.
 * User: 共赢岛
 * Date: 2023/12/8
 * Time: 9:38
 */

namespace App\Services\LifeCycle;


use App\Admin\Services\CarService;
use App\Models\CarPackageCategory;

class CategoryService
{
    public static function index()
    {

    }

    public static function one($category_id)
    {
        $category = CarPackageCategory::find($category_id);
        $category->cars = CarService::carJsonSwitch($category->car_ids);

        return $category;
    }
}